From: Colin Walters Date: Wed, 12 May 2010 20:50:36 +0000 (-0400) Subject: Don't treat min-width and min-height as a fixed size X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10094 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=47a92e7fc09c2e0411e559cd640131ccacc316bd;p=gnome-shell.git Don't treat min-width and min-height as a fixed size I have no idea why there existed code that if we saw e.g. min-width without a width, we assigned min-width to ->width, thus effectively treating it as a maximum. Just delete that bit. https://bugzilla.gnome.org/show_bug.cgi?id=618482 --- diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index dfe629e70..24846ae0d 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -1141,8 +1141,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node) else if (node->width > node->max_width) node->width = node->max_width; } - else - node->width = node->min_width; if (node->height != -1) { @@ -1155,8 +1153,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node) else if (node->height > node->max_height) node->height = node->max_height; } - else - node->height = node->min_height; } int